var limsEquiptFileAcqConfig = Gikam.getPageObject({

    getEditListColumns : function() {
        return [ {
            checkbox : true
        }, {
            field : 'equiptCode',
            title : 'T_LIMS_EQUIPMENT.EQUIPCODE'
        }, {
            field : 'ext$.equipname',
            title : 'T_LIMS_EQUIPT.EQUIPTNAME'
        }];
    },

    getDbFormFields : function() {
        return [ {
            field : 'driverClassName',
            title : 'T_LIMS_EQUIPT_FILE_ACQ_CONFIG.DRIVERCLASSNAME',
            validators : [ 'strLength[0,60]' ]
        }, {
            field : 'url',
            title : 'T_LIMS_EQUIPT_FILE_ACQ_CONFIG.URL',
            validators : [ 'strLength[0,120]' ]
        }, {
            field : 'dbUserName',
            title : 'T_LIMS_EQUIPT_FILE_ACQ_CONFIG.DBUSERNAME',
            validators : [ 'strLength[0,60]' ]
        }, {
            field : 'dbPassword',
            title : 'T_LIMS_EQUIPT_FILE_ACQ_CONFIG.DBPASSWORD',
            validators : [ 'strLength[0,60]' ]
        } ];
    },

    getFileFormFields : function() {
        return [ {
            field : 'ip',
            title : 'T_LIMS_EQUIPT_FILE_ACQ_CONFIG.IP',
            validators : [ 'strLength[0,15]' ]
        }, {
            field : 'port',
            title : 'T_LIMS_EQUIPT_FILE_ACQ_CONFIG.PORT',
            validators : [ 'strLength[0,8]' ]
        }, {
            field : 'username',
            title : 'T_LIMS_EQUIPT_FILE_ACQ_CONFIG.USERNAME',
            validators : [ 'strLength[0,21]' ]
        }, {
            field : 'password',
            title : 'T_LIMS_EQUIPT_FILE_ACQ_CONFIG.PASSWORD',
            validators : [ 'strLength[0,21]' ]
        }, {
            field : 'filePath',
            title : 'T_LIMS_EQUIPT_FILE_ACQ_CONFIG.FILEPATH',
            validators : [ 'strLength[0,33]' ]
        }, {
            field : 'savePath',
            title : 'T_LIMS_EQUIPT_FILE_ACQ_CONFIG.SAVEPATH',
            validators : [ 'strLength[0,33]' ]
        } ];
    },

    getBaseInfoFormFields : function() {
        return [ {
            field : 'equiptCode',
            title : '设备编号',
            readonly : true
        }, {
            field : 'acqMode',
            title : 'T_LIMS_EQUIPT_FILE_ACQ_CONFIG.ACQMODE',
            type : 'select',
            category: 'sys',
            param: {
                codeCategoryId: 'acqMode'
            }
        }, {
            field : 'acqFrequency',
            title : 'T_LIMS_EQUIPT_FILE_ACQ_CONFIG.ACQFREQUENCY',
            validators : [ 'strLength[0,8]' ]
        }, {
            field : 'exectorName',
            title : 'T_LIMS_EQUIPT_FILE_ACQ_CONFIG.EXECTORNAME',
            type : 'select',
            category: 'sys',
            param: {
                codeCategoryId: 'acqExector'
            }
        } ];
    },

    getSearchListColumns : function() {
        return [ {
            checkbox : true
        }, Gikam.status.getBpmnColumn(limsEquiptFileAcqConfig.workflow.dbTable), {
            field : 'equiptCode',
            title : 'T_LIMS_EQUIPT_FILE_ACQ_CONFIG.EQUIPTCODE'
        }, {
            field : 'ip',
            title : 'T_LIMS_EQUIPT_FILE_ACQ_CONFIG.IP'
        }, {
            field : 'port',
            title : 'T_LIMS_EQUIPT_FILE_ACQ_CONFIG.PORT'
        }, {
            field : 'username',
            title : 'T_LIMS_EQUIPT_FILE_ACQ_CONFIG.USERNAME'
        }, {
            field : 'password',
            title : 'T_LIMS_EQUIPT_FILE_ACQ_CONFIG.PASSWORD'
        }, {
            field : 'filePath',
            title : 'T_LIMS_EQUIPT_FILE_ACQ_CONFIG.FILEPATH'
        }, {
            field : 'savePath',
            title : 'T_LIMS_EQUIPT_FILE_ACQ_CONFIG.SAVEPATH'
        }, {
            field : 'acqMode',
            title : 'T_LIMS_EQUIPT_FILE_ACQ_CONFIG.ACQMODE'
        }, {
            field : 'acqFrequency',
            title : 'T_LIMS_EQUIPT_FILE_ACQ_CONFIG.ACQFREQUENCY'
        }, {
            field : 'exectorName',
            title : 'T_LIMS_EQUIPT_FILE_ACQ_CONFIG.EXECTORNAME'
        } ];
    },

    getChooseListColumns : function() {
        return [ {
            field : 'equiptCode',
            title : 'T_LIMS_EQUIPT_FILE_ACQ_CONFIG.EQUIPTCODE'
        }, {
            field : 'ip',
            title : 'T_LIMS_EQUIPT_FILE_ACQ_CONFIG.IP'
        }, {
            field : 'port',
            title : 'T_LIMS_EQUIPT_FILE_ACQ_CONFIG.PORT'
        }, {
            field : 'username',
            title : 'T_LIMS_EQUIPT_FILE_ACQ_CONFIG.USERNAME'
        }, {
            field : 'password',
            title : 'T_LIMS_EQUIPT_FILE_ACQ_CONFIG.PASSWORD'
        }, {
            field : 'filePath',
            title : 'T_LIMS_EQUIPT_FILE_ACQ_CONFIG.FILEPATH'
        }, {
            field : 'savePath',
            title : 'T_LIMS_EQUIPT_FILE_ACQ_CONFIG.SAVEPATH'
        }, {
            field : 'acqMode',
            title : 'T_LIMS_EQUIPT_FILE_ACQ_CONFIG.ACQMODE'
        }, {
            field : 'acqFrequency',
            title : 'T_LIMS_EQUIPT_FILE_ACQ_CONFIG.ACQFREQUENCY'
        }, {
            field : 'exectorName',
            title : 'T_LIMS_EQUIPT_FILE_ACQ_CONFIG.EXECTORNAME'
        } ];
    },

    baseUrl : IFM_CONTEXT + '/secure/basemodule/trm/equipt/equipt-file-acq-configs'
});
